<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新聘员工报表</title>
</head>
<body>
	<a href="${pageContext.request.contextPath}/index.jsp">返回</a>
	<br />
	<p>新聘员工报表</p>
	<br />
	<form
		action="${pageContext.request.contextPath}/ReportManagementServlet"
		method="post">
		开始日期<input name="startDate" type="date" /> 结束日期<input name="endDate"
			type="date" /> <input name="method" type="hidden"
			value="newEmployess"> <input type="submit" />
	</form>
	<c:if test="${not empty newEmployesList }">
		<table border="1">
			<tr>
				<td>序号</td>
				<td>部门名称</td>
				<td>岗位名称</td>
				<td>姓名</td>
				<td>性别</td>
				<td>入职日期</td>
				<td>学历</td>
			</tr>
			<c:forEach var="staff" items="${newEmployesList}" varStatus="status">
				<tr>
					<td>${status.index + 1}</td>
					<td>${staff.department.d_name}</td>
					<td>${staff.post.p_name }</td>
					<td>${staff.s_name }</td>
					<td>
					<c:if test="${staff.s_sex == 1}">男</c:if>
				    <c:if test="${staff.s_sex == 2}">女</c:if>
					</td>
					<td>${staff.s_entrydate }</td>
					<td></td>
				</tr>
			</c:forEach>
		</table>
	</c:if>
</body>
</html>